#ifndef _DATAGRAMSOCKETIMPL_H_
#define _DATAGRAMSOCKETIMPL_H_

#include "net/SocketDefs.hpp"
#include "net/SocketImpl.hpp"
#include "net/IPAddress.hpp"

NET_NAMESPACE_BEGIN

class CDatagramSocketImpl : public CSocketImpl
{
public:
	CDatagramSocketImpl();
	explicit CDatagramSocketImpl(CIPAddress::Family family);
	CDatagramSocketImpl(JH_SOCKET sockfd);

protected:
	void init(int af);

	~CDatagramSocketImpl();
};

NET_NAMESPACE_END

#endif
